const express = require('express');
const router = express.Router();
const rumorsHandle = require('../router_handle/rumors.js')
// 新闻数据获取
router.get('/rumors', rumorsHandle.getrumorsRouter)
router.get('/rumors/:id', rumorsHandle.inquirerumorsById)
router.delete('/rumors/:id', rumorsHandle.deleterumorsRouter)
router.post('/rumors/add', rumorsHandle.addrumorsRouter)
router.put('/rumors/:id', rumorsHandle.updaterumorsRouter)
module.exports = router;